<?php $this->fetch('public/head') ?>
    <div class="layui-tab layui-tab-brief">
        <ul class="layui-tab-title">
            <li class=""><a href="<?php echo url('index') ?>">应用领域CN</a></li>
            <li class=""><a href="<?php echo url('index_en') ?>">应用领域EN</a></li>
            <li class="layui-this">添加信息CN</li>
        </ul>
        <div class="layui-tab-content">
            <div class="layui-tab-item layui-show">
                <form class="layui-form form-container" action="<?php echo url('add') ?>" method="post">


                    <div class="layui-form-item">
                        <label class="layui-form-label">标题</label>
                        <div class="layui-input-block">
                            <input type="text" name="title" value="" required  lay-verify="required" placeholder="请输入标题" class="layui-input">
                        </div>
                    </div>

                    <div class="layui-form-item">
                        <label class="layui-form-label">摘要</label>
                        <div class="layui-input-block">
                            <textarea name="description" placeholder="（选填）请输入摘要" class="layui-textarea"></textarea>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">图片</label>
                        <div class="layui-upload">
                            <input type="text" name="imgpath" value="" class="layui-input layui-input-inline" placeholder="（选填）请上传图片">
                            <button type="button" class="layui-btn _img_url"><i class="layui-icon">&#xe67c;</i>上传图片</button>
                            <img class="layui-upload-img" height="38" data-expander='default,diamond,turn3d,flip3d,rotate,fade'>
                        </div>
                    </div>

                    <div class="layui-form-item">
                        <label class="layui-form-label">内容</label>
                        <div class="layui-input-block">
                            <textarea id="editor" name="content" class="layui-textarea" style="height: 200px;"></textarea>
                        </div>
                    </div>

                    <div class="layui-form-item">
                        <label class="layui-form-label">排序</label>
                        <div class="layui-input-block">
                            <input type="text" name="weight" value="0" required  lay-verify="required" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-input-block">
                            <button class="layui-btn" lay-submit lay-filter="*">保存</button>
                            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
<?php $this->fetch('public/script') ?>